#ifndef WORKINFOINPUTCONTROL_H
#define WORKINFOINPUTCONTROL_H

#include <QDialog>
#include <QWidget>
#include "BaseInclude.h"
namespace Ui { class WorkInfoInputControl; };

class  WorkInfoQEditTableDelegate : public QEditTableDelegate
{
	Q_OBJECT

public:

	WorkInfoQEditTableDelegate(QObject *parent = 0);
	~WorkInfoQEditTableDelegate();

	virtual void InitComboBox(const QModelIndex &index, QComboBox * editor) const;
};
class QWorkInfoInputControl : public QWidget
{
	Q_OBJECT

public:
	QWorkInfoInputControl(QWidget *parent = 0);
	~QWorkInfoInputControl();

	void hideItem();
	void mousePressEvent(QMouseEvent *event);
	void mouseReleaseEvent(QMouseEvent *event);
	void initTodayWatchTableView();
	void initTomorrowWatchTableView();
	void initWifiViewTableView();
	void initForbiddenTableView();
	void initPictureTableView();


	
private slots:
	void on_btnWorkInput_clicked();
	void on_btnSave_clicked();
	void on_btnClose_clicked();
	
    void on_btnCheckWatchPerson_clicked();

    void on_btnAddTodayWatch_clicked();

    void on_btnDelTodayWatch_clicked();

    void on_btnChooseTomorrowWatch_clicked();

    void on_btnAddTomorrowWatch_clicked();

    void on_btnDelTomorrowWatch_clicked();

    void on_btnAddForbidden_clicked();

    void on_btnChangeForbidden_clicked();

    void on_btnDelForbidden_clicked();

    void on_btnAddPicture_clicked();

    void on_btnChangePicture_clicked();

    void on_btnDelPicture_clicked();

private:
	Ui::WorkInfoInputControl *ui;
	QString sheetId = "4028947a5643fe33015644356fc10006";
	QRecordCheckTableModel *pTableModel = new QRecordCheckTableModel(true);
	QEditTableDelegate * pEditTableDelegate = new WorkInfoQEditTableDelegate();
	QRecordCheckTableModel *pTableModel2= new QRecordCheckTableModel(true);
	QEditTableDelegate * pEditTableDelegate2 = new QEditTableDelegate();
	QRecordCheckTableModel *pTableModel3 = new QRecordCheckTableModel(true);
	QEditTableDelegate * pEditTableDelegate3 = new QEditTableDelegate();
	QRecordCheckTableModel *pTableModel4 = new QRecordCheckTableModel(true);
	QEditTableDelegate * pEditTableDelegate4 = new QEditTableDelegate();
	QRecordCheckTableModel *pTableModel5 = new QRecordCheckTableModel(true);
	QEditTableDelegate * pEditTableDelegate5 = new QEditTableDelegate();
};

#endif // IMPORTEXCEL_H

